<?php

session_start();

define('RACINE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'../');
define('CLASS_PATH', RACINE_PATH.'../common/classes/');
define('HELPER_PATH', RACINE_PATH.'include/helpers/');
define('LIB_PATH',RACINE_PATH.'../libs/');
require_once(HELPER_PATH.'twigview.helper.php');
require_once(HELPER_PATH.'japwordview.helper.php');
require_once(HELPER_PATH.'login.helper.php');
require_once(HELPER_PATH.'website.helper.php');
require_once(HELPER_PATH.'notification.helper.php');


require_once("setup.conf.php");

$racine_path = realpath(RACINE_PATH);
$script_path = realpath($_SERVER['SCRIPT_FILENAME']);

if (substr($racine_path,-1) != DIRECTORY_SEPARATOR) {
	$racine_path .= DIRECTORY_SEPARATOR;
}

$rel_path = substr($script_path,strlen($racine_path));

define('SCRIPT_PATH', str_replace("\\", "/", $rel_path));

session_start();

require_once(LIB_PATH.'ValhallaKeys/SimpleORM/SimpleORM.php');

TwigView::$RACINE_PATH = RACINE_PATH;
TwigView::$TWIG_PATH = LIB_PATH.'Twig-1.12.2/Twig/';

header('Content-Type: text/html; charset=UTF-8');

?>